package com.yzh.springboot_rbac.entity;


/*构造有参无参和setget方法*/

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Dept {
    private Integer deptId;
    @NotBlank(message = "deptName can not is null")
    private String deptName;
    @NotNull(message = "parentId can not null")
    private Integer parentId;
    @NotNull(message = "orderNum can not is null")
    private Integer orderNum;
    private String status;
    private String delFlag;
    private String createBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    private String updateBy;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    private String remark;
    private String leader;
    private String phone;
    private String email;
    private List<Dept> children;




}
